import { requestPort, httpUpload } from '@/utils/request.js';

export default {

  //发送消息
  send_message: function (params) {
    return requestPort({
      url: '/api/index/send_message',
      method: 'POST',
      params: params
    })
  },

  //发送信息
  sendmessage: function (params) {
    return requestPort({
      url: '/api/service/sendmessage',
      method: 'POST',
      params: params
    })
  },

  shop_manager_list: function (params) {
    return requestPort({
      url: '/api/service/shop_manager_list',
      method: 'POST',
      params: params
    })
  },

  getuserallorder: function (params) {
    return requestPort({
      url: '/api/service/getuserallorder',
      method: 'POST',
      params: params
    })
  },

  getService_order_edit: function (params) {
    return requestPort({
      url: '/api/service/getService_order_edit',
      method: 'POST',
      params: params
    })
  },


  //上传图片
  uploadImg: function (params) {
    return httpUpload({
      url: '/api/common/upload',
      method: 'POST',
      params: params
    });
  },

  //企服聊天记录过滤接口，获取问答老师id列表
  filtration: function (params) {
    return requestPort({
      url: '/api/Jianghunew/get_major_list_id',
      method: 'POST',
      params: params
    })
  },
  check_read: function (params) {
    return requestPort({
      url: '/api/service/check_read',
      method: 'POST',
      params: params
    })
  },

  delay_pushmessage: function (params) {
    return requestPort({
      url: '/api/service/delay_pushmessage',
      method: 'POST',
      params: params
    })
  },
}